package org.example.stdent.entity;

public class Student {
    private Integer id; //
    private String sname;//
    private Integer cid;//
    private Classes classes;//
    public Student() {}

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", sname='" + sname + '\'' +
                ", cid=" + cid +
                ", classes=" + classes +
                '}';
    }

    public Student(Integer id, Integer cid, String sname, Classes classes) {
        this.id = id;
        this.cid = cid;
        this.sname = sname;
        this.classes = classes;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public void setClasses(Classes classes) {
        this.classes = classes;
    }

    public Integer getId() {
        return id;
    }

    public String getSname() {
        return sname;
    }

    public Integer getCid() {
        return cid;
    }

    public Classes getClasses() {
        return classes;
    }
}
